package com.explorati.interview.interview.chapterfour;

public class StringBBTest1 {

	public static void main(String[] args) {
		String a = "a";
		String b = "b";
		String c = "c";
		String d = "d";
		String e = "abcd";

		StringBuffer sb = new StringBuffer();
		sb.append(a);
		sb.append(b);
		sb.append(c);
		sb.append(d);
		String abcd = sb.toString();
		// false
		System.out.println(e == abcd);
		// abcd
		System.out.println(abcd);
	}
}
